﻿using System;
using System.Collections.Generic;
using System.Text;
using System.Drawing;
using CGLib.Enums;

namespace TienLen
{
    public class CardAnim : CGLib.Card
    {
        bool selected = false;
        int numPoint = 0;
        AnimTimer timerAnim = null;

        public CardAnim(Suite suite, Value value) : base(suite, value)
        { }

        public CardAnim(CGLib.Card card)
            : base(card.Suite, card.Value)
        {
            this.CardOrder = card.CardOrder;
        }

        /// <summary>
        /// The slot card number, of where the card will go when animating.
        /// </summary>
        public int CentreSlot
        {
            get { return numPoint; }
            set { numPoint = value; }
        }

        /// <summary>
        /// A Windows Form timer, where it'll animate the card. Value is null if it isn't.
        /// </summary>
        public AnimTimer TimerAnim
        {
            get { return timerAnim; }
            set { timerAnim = value; }
        }

        /// <summary>
        /// If the card is selected by the user, in the game with a mouse click.
        /// </summary>
        public bool IsSelected
        {
            get { return selected; }
            set { selected = value; }
        }
    }
}
